/*
 * globalvars.h
 *
 *  Created on: May 25, 2011
 *      Author: nzhao
 */

#ifndef GLOBALVARS_H_
#define GLOBALVARS_H_

#include "share/Usrdef.h"

//////////////////////////////////////////////////////////////////////////////////////////////////////////
/**\defgroup GLOBAL_VARS Global Variables
 * @{*/

extern char	WORKSHOP_LOCAL[];		/**< Working directory on local machine*/
extern char	WORKSHOP_SERVER[];		/**< Working directory on server machine*/
extern char	WORKSHOP[200];			/**< Working directory. It's value is set in the compiling process*/
extern char	DEBUG_PATH[];			/**< Path to the directory for debug.
									Relative path for debugging.*/

extern int		NBATH;						/**<number of bath spins*/
extern double	* COORDINATES;          	/**<bath spin coordinates*/
extern int		* ATOM_SPIN;				/**<nuclear spin quantum number*/
extern double	* ABSOLUTE_GAMMA_N;			/**<gyromagnetic ratio of bath spins*/

extern double   * NE_INT_MAT1,
				* NE_INT_MAT2;  //interactions between electron spin and bath spins
extern double	* MEDIATED_INT1,
				* MEDIATED_INT2;
extern double	* MAX_MEDIATED_INT;

extern int		BUFFER_CLST_NUM;	//smaller than 5.0*10^6 clusters
extern double	* RES_BUFFER_REDUCE;
extern double	* RES_BUFFER_IRREDUCE;
/**@}*/


#endif /* GLOBALVARS_H_ */

///////////////////////////////////////////////////////////////////////////////////////
/*!\var char	WORKSHOP_LOCAL[]
 * The workshop path on local machine.
 */

///////////////////////////////////////////////////////////////////////////////////////
/*!\var char	WORKSHOP_SERVER[];
 * The workshop path on remote server.
 */

///////////////////////////////////////////////////////////////////////////////////////
/*!\var char	WORKSHOP[200]
 * The workshop path, either \a WORKSHOP_LOCAL[] or \a WORKSHOP_SERVER[],
 * determined by \a WorkshopPath defined in the compile-time.
 */

///////////////////////////////////////////////////////////////////////////////////////
/*!\var char DEBUG_PATH[]
 * The relative path for debugging.
 */
